Find out "Everyon else"'s access rights on a module

Dear all,
I used this snippet of code to find out the Access rigths for the default user "Everyone else":

AccessRec arDef
Module curMod = current
for arDef in curMod do {
        if (isDefault(arDef) == true) {
//          <Find out exact permission of "Everyone else">
        }
}


This works fine if the module has 'specific' acces rights, but does
not work in case the access rights are 'inherited' .

I missed something here - in the documentation ?!?!!
Regrds,
Dolf


DolfRiedel - Fri Feb 26 06:54:44 EST 2010

Re: Find out "Everyon else"'s access rights on a module
Mathias Mamsch - Fri Feb 26 07:12:27 EST 2010

Hi Dolf,

you probably noticed, that even if you have inherited the access rights, you can see the effective access rights for the users in the access tab. You can get this information if you insert 'all' for rec in all module in your code, which will pay attention to inherited access rights:
 

for arDef in all curMod do {
        if (isDefault(arDef) == true) {
//          <Find out exact permission of "Everyone else">
        }
}

 


Regards, Mathias

 

Re: Find out "Everyon else"'s access rights on a module
DolfRiedel - Fri Feb 26 07:16:52 EST 2010

Hi Matthias,
thanks; that works.
Will remember: all == effective
Dolf

Re: Find out "Everyon else"'s access rights on a module
DolfRiedel - Fri Feb 26 07:17:35 EST 2010

Question has been answered